package cn.iphone.NPlayer.dto;

import cn.iphone.NPlayer.domain.Course;
import cn.iphone.NPlayer.domain.CourseDetail;
import cn.iphone.NPlayer.domain.CourseMarket;
import cn.iphone.NPlayer.domain.CourseResource;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import java.util.List;
@Data
@NoArgsConstructor
@AllArgsConstructor

public class CourseDto {
    @Valid
    private Course course;
    private CourseDetail courseDetail;
    private CourseMarket courseMarket;
    private CourseResource courseResource;
    @NotEmpty(message = "请选择老师")
    private List<Long> teacherIds;
}
